/**
 * @author Fang Lu, fanglupku@gmail.com
 * 2012-2-19
 */
package com.autotag.entity;

/**
 * These are tags from seekda web pages.
 */
public class Tag {
	public final static int MAX_LENGTH_NAME = 255;
	public final static int MAX_LENGTH_REF = 1023;
	private int id;
	private String name;
	private String ref;
	public Tag(int id, String name, String ref){
		this.id = id;
		this.name = name;
		this.ref = ref;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRef() {
		return ref;
	}
	public void setRef(String ref) {
		this.ref = ref;
	}
	public int hashCode(){
		return this.name.hashCode();
	}
	public boolean equals(Object o1){
		if (this.name.equals(((Tag)o1).name)){
			return true;
		}
		else{
			return false;
		}
	}
}
